"""game URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView

import game_api.urls
from webol import views
from web_real import url_web_real

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^index/', views.index, name='index'),
    url(r'^xieyi/', views.xieyi, name='xieyi'),
    url(r'^about_us/', views.about_us, name='about_us'),
    url(r'^care/', views.care, name='care'),
    url(r'^custom/', views.custom, name='custom'),
    url(r'^game1/', views.game1, name='game1'),
    url(r'^game2/', views.game2, name='game2'),
    url(r'^game3/', views.game3, name='game3'),
    url(r'^game_new/', TemplateView.as_view(template_name='news.html'), name='game_new'),
    url(r'^cl/', views.cl, name='cl'),
    url(r'^game_center/', views.game_center, name='game_center'),
    url(r'^rechange/', views.rechange, name='rechange'),
    url(r'^webreal/', include(url_web_real)),
    url(r'^game_api/', include(game_api.urls)),

    url(r'^$', views.index),
] + \
              static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + \
              static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
